/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfz.wisdom.modules.platform.vueweb;

import com.lczyfz.wisdom.common.utils.ServerResponse;
import com.lczyfz.wisdom.common.web.BaseController;
import com.lczyfz.wisdom.modules.platform.entity.Opinion;
import com.lczyfz.wisdom.modules.platform.service.OpinionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户反馈Controller
 * @author css
 * @version 2019-09-26
 */
@Api(value = "opinion",description = "意见反馈接口")
@RestController
@RequestMapping(value = "${apiPath}/opinion/opinion")
public class VueOpinionController extends BaseController {

	@Autowired
	private OpinionService opinionService;
	
	@ApiOperation(value = "意见反馈",httpMethod = "POST")
	@RequestMapping(value = "opinionSave", method = RequestMethod.POST)
	public ServerResponse opinionSave(@RequestBody Opinion opinion){
		return opinionService.opinionSave(opinion);
	}


}